function login(){
    window.location.href="/login";
}


function index(){
    window.location.href="/index";
}


function register(){
    window.location.href="/register";
}


function cart(){
    window.location.href="/cart/showProduct";
}



function shoppingInfoPurchase(proId){

    if(confirm("是否确认购买此商品？")){
        window.location.href="/user/shoppingInfoPurchase/"+proId;
    }
}



function shoppingInfoCollect(productId){
    if(confirm("是否确认收藏此商品？")){
        window.location.href="/user/shoppingInfoCollect/"+productId;
    }
}


function shoppingInfoJoinCart(productId){
    if(confirm("是否确认加入购物车？")){
        window.location.href="/cart/shoppingInfoJoinCart/"+productId;
    }
}




function shoppingInfo(productId){
    window.location.href="/user/shoppingInfo/"+productId;
}


function purchase(){
    window.location.href="/purchase"
}


function productType(productTypeId){
    console.log(productTypeId)
    window.location.href="/productType/"+productTypeId;
}



function exit(userId){
    if(confirm("是否确认取消入驻？")){
        window.location.href="/exitShopping/"+userId;
    }
}

function page(pageNum,userid){
    var str = "/page/"+pageNum+"/"+userid;
    window.location.href="/page/"+pageNum+"/"+userid;

}





